import { post } from './api'

export function login(data) {
    return post('/bill/login', data)
}

/*
 * 获取用户信息
 * */
export function getInfo() {
    return post('/bill/getInfo', {})
}

/**
 * 用户登出
 * @returns {AxiosPromise}
 */
export function logout() {
    return post('/bill/logout', {})
}

export function getAnnualReport(account) {
    return post('/bill/getInfo', { account })
}
